package gui;

import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class PartyCreationPanel extends JPanel {

	public JLabel label_PC_Title;
	public JLabel label_PC_CreateHeader;
	public JLabel label_PC_CharacterName;
	public JComboBox comboBox_PC_Profession;
	public JLabel label_PC_Profession;
	public JLabel label_PC_ProfessionDescription;
	public JLabel lblPerson_3;
	public JLabel lblPerson_1;
	public JLabel lblPerson_4;
	public JLabel lblPerson_2;
	public JLabel lblEnterTheNames;
	
	public JTextField textField_PC_PlayerName;
	public JTextField textField_PC_Name1;
	public JTextField textField_PC_Name2;
	public JTextField textField_PC_Name3;
	public JTextField textField_PC_Name4;
	
	public JButton button_PC_Continue;
	public JButton btnBack;
	public JLabel lblProfessionInfo;
	
	/**
	 * Create the panel.
	 */
	public PartyCreationPanel() {
		setLayout(null);

		label_PC_Title = new JLabel("Party Member Creation");
		label_PC_Title.setFont(new Font("Tahoma", Font.PLAIN, 30));
		label_PC_Title.setHorizontalAlignment(SwingConstants.CENTER);
		label_PC_Title.setBounds(10, 11, 684, 36);
		add(label_PC_Title);

		label_PC_CreateHeader = new JLabel("Create your character");
		label_PC_CreateHeader.setFont(new Font("Tahoma", Font.PLAIN, 16));
		label_PC_CreateHeader.setBounds(25, 74, 257, 20);
		add(label_PC_CreateHeader);

		label_PC_CharacterName = new JLabel("Name:");
		label_PC_CharacterName.setBounds(57, 105, 88, 14);
		add(label_PC_CharacterName);

		textField_PC_PlayerName = new JTextField();
		textField_PC_PlayerName.setBounds(131, 102, 334, 20);
		add(textField_PC_PlayerName);
		textField_PC_PlayerName.setColumns(10);

		label_PC_Profession = new JLabel("Profession:");
		label_PC_Profession.setBounds(57, 136, 75, 14);
		add(label_PC_Profession);

		comboBox_PC_Profession = new JComboBox();		
		comboBox_PC_Profession.setBounds(131, 133, 334, 20);
		comboBox_PC_Profession.addItem("Banker");
		comboBox_PC_Profession.addItem("Carpenter");
		comboBox_PC_Profession.addItem("Farmer");
		add(comboBox_PC_Profession);

		label_PC_ProfessionDescription = new JLabel("");
		label_PC_ProfessionDescription.setBounds(111, 136, 225, 14);
		add(label_PC_ProfessionDescription);

		lblPerson_3 = new JLabel("Person 3:");
		lblPerson_3.setBounds(57, 260, 60, 14);
		add(lblPerson_3);

		textField_PC_Name3 = new JTextField();
		textField_PC_Name3.setColumns(10);
		textField_PC_Name3.setBounds(131, 257, 334, 20);
		add(textField_PC_Name3);

		button_PC_Continue = new JButton("Continue");

		button_PC_Continue.setFont(new Font("Tahoma", Font.PLAIN, 11));
		button_PC_Continue.setBounds(267, 339, 180, 52);
		add(button_PC_Continue);

		lblPerson_1 = new JLabel("Person 1:");
		lblPerson_1.setBounds(57, 205, 60, 14);
		add(lblPerson_1);

		textField_PC_Name1 = new JTextField();
		textField_PC_Name1.setColumns(10);
		textField_PC_Name1.setBounds(131, 202, 334, 20);
		add(textField_PC_Name1);

		lblPerson_4 = new JLabel("Person 4:");
		lblPerson_4.setBounds(57, 288, 60, 14);
		add(lblPerson_4);

		textField_PC_Name4 = new JTextField();
		textField_PC_Name4.setColumns(10);
		textField_PC_Name4.setBounds(131, 285, 334, 20);
		add(textField_PC_Name4);

		lblPerson_2 = new JLabel("Person 2:");
		lblPerson_2.setBounds(57, 232, 60, 14);
		add(lblPerson_2);

		textField_PC_Name2 = new JTextField();
		textField_PC_Name2.setColumns(10);
		textField_PC_Name2.setBounds(131, 229, 334, 20);
		add(textField_PC_Name2);

		lblEnterTheNames = new JLabel(
				"Enter the names of the people you want to travel with");
		lblEnterTheNames.setFont(new Font("Tahoma", Font.PLAIN, 16));
		lblEnterTheNames.setBounds(25, 174, 440, 20);
		add(lblEnterTheNames);
		
		btnBack = new JButton("Back");
		btnBack.setFont(new Font("Tahoma", Font.PLAIN, 11));
		btnBack.setBounds(636, 15, 60, 30);
		add(btnBack);
		
		lblProfessionInfo = new JLabel("Bankers start with $500");
		lblProfessionInfo.setBounds(490, 136, 189, 14);
		add(lblProfessionInfo);
	}
}
